home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Demos / DTP / QuarkXPress™ 3.3 / Scripts / Frontier Runtime scripts / Examples.LockGuides < prev    next >
MacBinary  |  1993-08-12  |  2.1 KB  |  [2CLK/LAND]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Thu Aug 12 08:44:35 1993, modified Thu Aug 12 08:44:38 1993, creator 'LAND', type '2CLK' "Examples.LockGuides", at 0x80 1930 bytes resource Apple HFS/HFS+ resource fork, map offset 0x6e2, map length 0xa8, data length 0x5e2, at 16 0x54462383, nextResourceMap 0xa92f18, fileRef 0x102a, list offset 0x1c, name offset 0x7e, 3 types, 0x53545220 'STR ' * 4 resource offset 0x1a default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[2CLK]
macFileCreator[LAND]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 45 78 61 6d 70 6c | 65 73 2e 4c 6f 63 6b 47 |..Exampl|es.LockG|
|00000010| 75 69 64 65 73 00 00 00 | 00 00 00 00 00 00 00 00 |uides...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 32 43 4c 4b 4c 41 4e | 44 01 00 00 00 00 00 00 |.2CLKLAN|D.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 07 8a a8 8f eb b3 a8 |........|........|
|00000060| 8f eb b6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9c 21 00 00 |........|.....!..|
|00000080| 00 00 01 00 00 00 06 e2 | 00 00 05 e2 00 00 00 a8 |........|........|
|00000090| 54 46 23 83 61 59 4e a5 | c1 cb 10 3c 08 64 fa 5c |TF#.aYN.|...<.d.\|
|000000a0| 15 8f a1 c0 d3 7c 0c 93 | 2e 02 02 99 94 ce 6d 32 |.....|..|......m2|
|000000b0| 13 45 78 61 6d 70 6c 65 | 73 2e 4c 6f 63 6b 47 75 |.Example|s.LockGu|
|000000c0| 69 64 65 73 02 00 00 00 | 32 43 4c 4b 4c 41 4e 44 |ides....|2CLKLAND|
|000000d0| 00 00 32 43 4c 4b 4c 41 | 4e 44 00 00 00 00 00 00 |..2CLKLA|ND......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 ab 83 6f 2a 00 00 | 00 00 00 00 07 8a 39 c4 |....o*..|......9.|
|00000100| 22 79 1c 1f 0b 65 50 e6 | 44 37 9d 4c e2 22 14 92 |"y...eP.|D7.L."..|
|00000110| c4 06 12 24 44 91 0e 87 | 4c 74 a1 40 df 8a 6a d7 |...$D...|Lt.@..j.|
|00000120| 95 0c 24 19 4c 38 cb 41 | 09 10 a4 56 29 05 71 d1 |..$.L8.A|...V).q.|
|00000130| b8 97 65 32 0f 22 fc 7a | f1 22 14 c8 25 48 6a 19 |..e2.".z|."..%Hj.|
|00000140| 71 e8 14 cd 11 ea 1f 64 | 4b 89 84 c5 04 08 b4 98 |q......d|K.......|
|00000150| e4 0c 22 9c b1 0f 51 62 | 9c 14 94 46 72 29 60 8c |.."...Qb|...Fr)`.|
|00000160| 53 0c d1 f4 e4 6e a1 18 | d3 b1 01 90 c8 f3 12 ab |S....n..|........|
|00000170| f9 88 3d 23 63 ec 27 04 | 49 b8 e2 cc 86 f4 a2 d5 |..=#c.'.|I.......|
|00000180| 00 00 00 06 05 32 2e 30 | 2e 31 00 00 00 09 08 46 |.....2.0|.1.....F|
|00000190| 72 6f 6e 74 69 65 72 00 | 00 01 be 00 01 04 68 00 |rontier.|......h.|
|000001a0| 02 00 00 00 18 00 00 01 | 2a 00 02 02 00 00 0f 06 |........|*.......|
|000001b0| 47 65 6e 65 76 61 00 00 | 00 00 00 00 00 00 00 00 |Geneva..|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 09 00 00 00 00 00 | 00 00 00 00 00 06 54 00 |........|......T.|
|000001e0| 0f a4 d0 77 90 a8 8f f9 | c3 00 00 00 3c 80 00 00 |...w....|....<...|
|000001f0| 3f 00 09 00 e6 02 66 00 | 00 00 00 00 00 00 00 00 |?.....f.|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 6f | 6e 20 63 61 6c 6c 69 6d |.......o|n callim|
|00000220| 70 6f 72 74 65 72 20 28 | 70 61 74 68 29 20 c7 74 |porter (|path) .t|
|00000230| 68 69 73 20 73 63 72 69 | 70 74 20 69 73 20 73 61 |his scri|pt is sa|
|00000240| 76 65 64 20 77 69 74 68 | 20 61 6c 6c 20 65 78 70 |ved with| all exp|
|00000250| 6f 72 74 65 64 20 6f 62 | 6a 65 63 74 73 0d 09 55 |orted ob|jects..U|
|00000260| 6e 2d 63 6f 6d 6d 65 6e | 74 20 61 6e 64 20 65 64 |n-commen|t and ed|
|00000270| 69 74 20 74 68 65 20 66 | 6f 6c 6c 77 6f 69 6e 67 |it the f|ollwoing|
|00000280| 20 6c 69 6e 65 20 74 6f | 20 61 75 74 6f 2d 69 6e | line to| auto-in|
|00000290| 73 74 61 6c 6c 20 69 74 | 65 6d 20 69 6e 20 73 63 |stall it|em in sc|
|000002a0| 72 69 70 74 20 6d 65 6e | 75 20 66 6f 72 20 72 75 |ript men|u for ru|
|000002b0| 6e 2d 30 74 69 6d 65 20 | 66 6f 6c 6b 73 0d 09 6d |n-0time |folks..m|
|000002c0| 65 6e 75 2e 61 64 64 6d | 65 6e 75 63 6f 6d 6d 61 |enu.addm|enucomma|
|000002d0| 6e 64 28 40 73 79 73 74 | 65 6d 2e 6d 65 6e 75 62 |nd(@syst|em.menub|
|000002e0| 61 72 73 2e 58 50 52 33 | 2c 22 53 63 72 69 70 74 |ars.XPR3|,"Script|
|000002f0| 73 22 2c 22 47 75 69 64 | 65 20 4c 6f 63 6b 69 6e |s","Guid|e Lockin|
|00000300| 67 22 2c 22 51 58 50 2e | 45 78 61 6d 70 6c 65 73 |g","QXP.|Examples|
|00000310| 2e 4c 6f 63 6b 47 75 69 | 64 65 73 28 29 22 29 0d |.LockGui|des()").|
|00000320| 09 72 65 74 75 72 6e 20 | 28 65 78 70 6f 72 74 2e |.return |(export.|
|00000330| 69 6d 70 6f 72 74 65 72 | 20 28 70 61 74 68 29 29 |importer| (path))|
|00000340| 0d 80 00 00 00 00 00 84 | 00 00 00 00 00 80 00 00 |........|........|
|00000350| 00 00 00 80 00 00 00 00 | 00 00 00 00 0d 0c 63 61 |........|......ca|
|00000360| 6c 6c 69 6d 70 6f 72 74 | 65 72 00 00 00 02 01 31 |llimport|er.....1|
|00000370| 00 00 03 ee 73 63 70 74 | 00 01 04 68 00 02 00 00 |....scpt|...h....|
|00000380| 00 66 00 00 03 08 00 00 | 02 00 00 0f 06 47 65 6e |.f......|.....Gen|
|00000390| 65 76 61 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |eva.....|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 09 |........|........|
|000003b0| 00 00 00 00 00 01 00 00 | 00 00 06 54 00 00 a8 8c |........|...T....|
|000003c0| 27 5b a8 8f f9 56 00 00 | 00 07 80 00 00 48 fd 9e |'[...V..|.....H..|
|000003d0| 01 65 ff 57 00 00 00 00 | 00 00 00 00 00 00 00 00 |.e.W....|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 a9 31 39 39 | 33 20 51 75 61 72 6b 2c |.....199|3 Quark,|
|00000400| 20 49 6e 63 2e 20 20 41 | 6c 6c 20 72 69 67 68 74 | Inc. A|ll right|
|00000410| 73 20 72 65 73 65 72 76 | 65 64 2e 0d 77 69 74 68 |s reserv|ed..with|
|00000420| 20 6f 62 6a 65 63 74 4d | 6f 64 65 6c 2c 51 58 50 | objectM|odel,QXP|
|00000430| 2c 51 58 50 2e 64 65 66 | 73 0d 09 54 68 69 73 20 |,QXP.def|s..This |
|00000440| 73 63 72 69 70 74 20 74 | 65 73 74 73 20 74 68 65 |script t|ests the|
|00000450| 20 63 75 72 72 65 6e 74 | 20 73 74 61 74 65 20 6f | current| state o|
|00000460| 66 20 6c 6f 63 6b 47 75 | 69 64 65 73 20 28 61 20 |f lockGu|ides (a |
|00000470| 64 6f 63 75 6d 65 6e 74 | 2d 77 69 64 65 20 73 65 |document|-wide se|
|00000480| 74 74 69 6e 67 2e 29 0d | 09 54 68 65 20 75 73 65 |tting.).|.The use|
|00000490| 72 20 69 73 20 6e 6f 74 | 69 66 69 65 64 20 6f 66 |r is not|ified of|
|000004a0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 73 74 61 | the cur|rent sta|
|000004b0| 74 65 20 61 6e 64 20 61 | 73 6b 65 64 20 69 66 20 |te and a|sked if |
|000004c0| 74 68 65 79 20 77 61 6e | 74 20 74 6f 20 74 6f 67 |they wan|t to tog|
|000004d0| 67 6c 65 20 69 74 2e 0d | 09 4e 6f 74 65 20 74 68 |gle it..|.Note th|
|000004e0| 61 74 20 69 66 20 79 6f | 75 20 64 6f 6e d5 74 20 |at if yo|u don.t |
|000004f0| 77 61 6e 74 20 64 69 61 | 6c 6f 67 73 2c 20 79 6f |want dia|logs, yo|
|00000500| 75 20 63 61 6e 20 73 69 | 6d 70 6c 79 20 72 65 70 |u can si|mply rep|
|00000510| 6c 61 63 65 20 74 68 65 | 20 65 6e 74 69 72 65 0d |lace the| entire.|
|00000520| 09 69 66 2d 65 6c 73 65 | 20 6c 6f 6f 70 20 77 69 |.if-else| loop wi|
|00000530| 74 68 20 74 68 65 20 22 | 73 65 74 20 28 6c 6f 63 |th the "|set (loc|
|00000540| 6b 67 75 69 64 65 73 2c | 21 28 67 65 74 28 6c 6f |kguides,|!(get(lo|
|00000550| 63 6b 47 75 69 64 65 73 | 29 29 29 22 20 6c 69 6e |ckGuides|)))" lin|
|00000560| 65 2e 0d 09 69 66 20 65 | 78 69 73 74 73 20 28 64 |e...if e|xists (d|
|00000570| 6f 63 75 6d 65 6e 74 5b | 31 5d 29 0d 09 09 77 69 |ocument[|1])...wi|
|00000580| 74 68 20 64 6f 63 75 6d | 65 6e 74 5b 31 5d 0d 09 |th docum|ent[1]..|
|00000590| 09 09 69 66 20 67 65 74 | 28 6c 6f 63 6b 47 75 69 |..if get|(lockGui|
|000005a0| 64 65 73 29 0d 09 09 09 | 09 69 66 20 64 69 61 6c |des)....|.if dial|
|000005b0| 6f 67 2e 79 65 73 4e 6f | 28 22 47 75 69 64 65 73 |og.yesNo|("Guides|
|000005c0| 20 61 72 65 20 63 75 72 | 72 65 6e 74 6c 79 20 6c | are cur|rently l|
|000005d0| 6f 63 6b 65 64 2e 20 53 | 65 74 20 74 6f 20 75 6e |ocked. S|et to un|
|000005e0| 6c 6f 63 6b 65 64 3f 22 | 29 0d 09 09 09 09 09 73 |locked?"|)......s|
|000005f0| 65 74 20 28 6c 6f 63 6b | 67 75 69 64 65 73 2c 21 |et (lock|guides,!|
|00000600| 28 67 65 74 28 6c 6f 63 | 6b 47 75 69 64 65 73 29 |(get(loc|kGuides)|
|00000610| 29 29 0d 09 09 09 65 6c | 73 65 0d 09 09 09 09 69 |))....el|se.....i|
|00000620| 66 20 64 69 61 6c 6f 67 | 2e 79 65 73 4e 6f 28 22 |f dialog|.yesNo("|
|00000630| 47 75 69 64 65 73 20 61 | 72 65 20 63 75 72 72 65 |Guides a|re curre|
|00000640| 6e 74 6c 79 20 75 6e 6c | 6f 63 6b 65 64 2e 20 53 |ntly unl|ocked. S|
|00000650| 65 74 20 74 6f 20 6c 6f | 63 6b 65 64 3f 22 29 0d |et to lo|cked?").|
|00000660| 09 09 09 09 09 73 65 74 | 20 28 6c 6f 63 6b 67 75 |.....set| (lockgu|
|00000670| 69 64 65 73 2c 21 28 67 | 65 74 28 6c 6f 63 6b 47 |ides,!(g|et(lockG|
|00000680| 75 69 64 65 73 29 29 29 | 0d 09 65 6c 73 65 0d 09 |uides)))|..else..|
|00000690| 09 64 69 61 6c 6f 67 2e | 6e 6f 74 69 66 79 28 22 |.dialog.|notify("|
|000006a0| 53 6f 72 72 79 2c 20 74 | 68 69 73 20 73 63 72 69 |Sorry, t|his scri|
|000006b0| 70 74 20 63 61 6e 20 6f | 6e 6c 79 20 62 65 20 75 |pt can o|nly be u|
|000006c0| 73 65 64 20 77 69 74 68 | 20 61 6e 20 6f 70 65 6e |sed with| an open|
|000006d0| 20 64 6f 63 75 6d 65 6e | 74 2e 22 29 0d 09 73 79 | documen|t.")..sy|
|000006e0| 73 2e 62 72 69 6e 67 41 | 70 70 54 6f 46 72 6f 6e |s.bringA|ppToFron|
|000006f0| 74 20 28 27 58 50 52 33 | 27 29 20 0d 84 00 00 00 |t ('XPR3|') .....|
|00000700| 00 00 80 00 00 00 00 00 | 84 00 00 00 00 00 84 00 |........|........|
|00000710| 00 00 00 00 84 00 00 00 | 00 00 84 00 00 00 00 00 |........|........|
|00000720| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00000730| 00 00 80 00 00 00 00 00 | 80 00 00 00 00 00 80 00 |........|........|
|00000740| 00 00 00 00 80 00 00 00 | 00 00 80 00 00 00 00 00 |........|........|
|00000750| 80 00 00 00 00 00 80 00 | 00 00 00 00 80 00 00 00 |........|........|
|00000760| 00 00 00 00 01 00 00 00 | 06 e2 00 00 05 e2 00 00 |........|........|
|00000770| 00 a8 00 a9 2f 18 10 2a | 00 00 00 1c 00 7e 00 02 |..../..*|.....~..|
|00000780| 53 54 52 20 00 03 00 1a | 73 63 70 74 00 00 00 4a |STR ....|scpt...J|
|00000790| 64 61 74 61 00 00 00 56 | 00 80 ff ff 00 00 00 00 |data...V|........|
|000007a0| 00 00 00 00 bf f4 ff ff | 00 00 00 0a 00 00 00 00 |........|........|
|000007b0| 00 82 ff ff 00 00 01 d9 | 00 00 00 00 00 7f ff ff |........|........|
|000007c0| 00 00 01 ea 00 00 00 00 | 00 81 ff ff 00 00 00 17 |........|........|
|000007d0| 00 00 00 00 52 76 00 00 | 00 00 01 f0 00 a8 dc 04 |....Rv..|........|
|000007e0| 29 73 79 73 74 65 6d 2e | 76 65 72 62 73 2e 61 70 |)system.|verbs.ap|
|000007f0| 70 73 2e 51 58 50 2e 45 | 78 61 6d 70 6c 65 73 2e |ps.QXP.E|xamples.|
|00000800| 4c 6f 63 6b 47 75 69 64 | 65 73 00 00 00 00 00 00 |LockGuid|es......|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+